package cn.edu.sgu.www.mhxysy.service.chongwu_equipment.impl;

import cn.edu.sgu.www.mhxysy.entity.chongwu_equipment.ChongwuEquipmentCategory;
import cn.edu.sgu.www.mhxysy.mapper.chongwu_equipment.ChongwuEquipmentCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.chongwu_equipment.ChongwuEquipmentCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuEquipmentCategoryServiceImpl implements ChongwuEquipmentCategoryService {

	private final ChongwuEquipmentCategoryMapper chongwuEquipmentCategoryMapper;

	@Autowired
	public ChongwuEquipmentCategoryServiceImpl(ChongwuEquipmentCategoryMapper chongwuEquipmentCategoryMapper) {
		this.chongwuEquipmentCategoryMapper = chongwuEquipmentCategoryMapper;
	}

	@Override
	public List<ChongwuEquipmentCategory> selectAll() {
		return chongwuEquipmentCategoryMapper.selectList(null);
	}

	@Override
	public ChongwuEquipmentCategory selectById(Integer id) {
		return chongwuEquipmentCategoryMapper.selectById(id);
	}

}